1 package jrre.instructionset.exceptions;
2
3 import jrre.*;
4
5 public class AThrow extends jrre.instructionset.Instruction {
6
7 public AThrow(){
8
9 name = "athrow";
10 description = "foo foo moo poo";
11 length = 0;
12 }
13
14 /***
15 * Executes the <strong><code>athrow</code></strong> instruction.
16 *
17 */
18 public void execute(){
19
20 //throw new Exception("JRRE Exception: "+Stack.popOperand());
21 System.out.println("\n\nJRRE Exception: "+Stack.popOperand());
22 }
23
24 public String toString(){
25 StringBuffer toReturn = new StringBuffer();
26 toReturn.append("athrow");
27 return toReturn.toString();
28 }
29 }
This page was automatically generated by Maven